var { user } = require('../dao/index')
function addPart(id,part) {
    user.findById(id, function (err,data) {
        var minute = data.credit + part
        user.findByIdAndUpdate(id, { credit: minute }, function (err,data) {
        })
    })
}

module.exports.addPart = addPart